package com.dzm.xgb.sms.client;

import com.dzm.common.result.R;
import com.dzm.xgb.sms.client.impl.UserInfoFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 作者：Dzm
 * 时间：2024-09-04-9:24
 * 功能：
 */

@FeignClient(value = "xgb-core-server", fallback = UserInfoFallback.class)
public interface UserInfoClient {

    @GetMapping("/api/core/userInfo/check/{phoneNumber}")
    public R checkPhone(@PathVariable("phoneNumber")String phoneNumber);
}
